package com.paso.westpark.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.paso.westpark.mapper.RecordMapper;
import com.paso.westpark.pojo.Record;
import com.paso.westpark.service.IRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangx
 * @since 2021-02-14
 */
@Service
public class RecordServiceImpl extends ServiceImpl<RecordMapper, Record> implements IRecordService {

    @Resource
    RecordMapper recordMapper;



    @Override
    public List<Record> selectByCarNo(String CarNO) {
        return recordMapper.selectByCarNo(CarNO);
    }

    @Override
    public List<Record> selectByIcno(String icno) {
        return recordMapper.selectByIcno(icno);
    }

    @Override
    public void deleteById(Integer id) {
        recordMapper.deleteById(id);
    }
}
